HTMLify

style.css
Views: 32 | Author: cody
body {
    background: #151515;
    height: 100vh;
    display: grid;
    place-items: center;
}

.container {
    position: relative;
    font-family: monospace;
    color: rgb(255, 255, 255);
    font-size: 4em;
    filter: contrast(15);
}

.word {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: switch 8s infinite ease-in-out;
    min-width: 100%;
    margin: auto;
}

.word:nth-child(1) {
    animation-delay: -7s;
}

.word:nth-child(2) {
    animation-delay: -6s;
}

.word:nth-child(3) {
    animation-delay: -5s;
}

@keyframes switch {

    0%,
    5%,
    100% {
        filter: blur(0px);
        opacity: 1;
    }

    50%,
    80% {
        filter: blur(180px);
        opacity: 0;
    }
}

Comments